/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my.cbr.database.model.measurement;

import java.util.Date;
import jcolibri.cbrcore.Attribute;
import jcolibri.cbrcore.CaseComponent;

/**
 *
 * @author Geir Ole
 */
public class OxygenInstance implements MeasurementInstance, CaseComponent {
    private Integer measurementID;
    private Date date;
    private Double value;
    private MeasurementType measurementType;

    public OxygenInstance() {
        
    }

    public OxygenInstance(Date date, Double value, MeasurementType measurementType) {
        this.date = date;
        this.value = value;
        this.measurementType = measurementType;
    }

    public MeasurementType getMeasurementType() {
        return measurementType;
    }

    public void setMeasurementType(MeasurementType measurementType) {
        this.measurementType = measurementType;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getMeasurementID() {
        return measurementID;
    }

    public void setMeasurementID(Integer measurementID) {
        this.measurementID = measurementID;
    }

    public Attribute getIdAttribute() {
        return new Attribute("measurementID", this.getClass());
    }

    @Override
    public String toString() {
        return "OxygenInstance{" + "date=" + date + ", value=" + value + '}';
    }
}
